package com.epam.Accessories;


public class WaterPlant extends Accessories {

    public WaterPlant(String name, double price, AccessoriesQuality quality, int height) {
        super(name, price, quality);

        this.height = height;
    }

    private int height;

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        if(height > 1){
            this.height = height;
        }
    }

    @Override
    public String toString() {
        return "Water Plant for Aquarium [ Name: "+getName()+"; Price: "+getPrice()+
                "; Quality: "+ getQuality()+"; Height: "+getHeight()+"]";
    }
}
